<?php
include('fileget.php');
fileget('argv.php');


$obj = new argv();
$obj->set_text('Get $_SERVER info');
$obj->set_arg('info');
$obj->set_required(FALSE);
$obj->set_value('info');
$obj->set_value('server');
$obj->set_value('path');
$result = $obj->run($argv);


if($result['info']=='server')
    {
        print_r($_SERVER);
    }elseif($result['info']=='path')
    {
        echo "\n\n\t".get_include_path()."\n\n";
    }else{
        $argv[1]='-?';
        $obj->run($argv);
    }

//print_r($argv);
?>